<?php
	error_reporting(0);
	include_once 'db.class.php';
	include_once 'function.php';
	include_once 'modConfig.php';
	$db = wpConn::initdb($dbhost,$uname,$upwd,$dbname);
	
	$mod = getRequest('m');
	$key = getRequest('k');
	$day = date('Y-m-d',time()); 
	
	if(empty($mod)||empty($key)){
		exit(retJson(0,'参数不能为空'));
	}

	if(!array_key_exists($mod,$modConfig)){
		exit(retJson(0,'模块不存在'));
	}
	
	if($key !== md5($mod.$day.$keysign)){
		//exit(retJson(0,'Key不匹配'));
	}
	try{
		include $modConfig[$mod]['modfile'];
	}catch(Exception $e){
		exit(retJson());
	}
	